﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true"
    CodeBehind="Album.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Editor.Gallery.Album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .form-wrap { width: 100%;}
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ctphTitle" runat="server">
    <h1>Quản lý tác giả</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">

    <div class="full">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="form-wrap">
                    <div class="form-field">
                        <p class="submitButton">
                            <%--<asp:Button ID="BtnCreate" runat="server" CssClass="btn btn-primary" Text="Thêm mới" OnClick="BtnCreateClick" />--%>
                            <a href="CreateAlbum.aspx" class="btn btn-primary">Thêm mới</a>
                        </p>
                    </div>
                </div>

                <asp:Repeater ID="RptListAlbum" runat="server">
                    <HeaderTemplate>
                        <div style="margin-top: 50px; color: #000;float: left;">
                            <h1 style="font-size: 16px;">Danh sách tác giả</h1><br/><br/>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div class="albumItem">
                            <a href="CreatePhoto.aspx?AlbumId=<%# Eval("AlbumID") %>"><%# Eval("AlbumName") %></a>
                            <div style="border: solid 1px #CCC; width: 130px; height: 107px; margin-top: 5px; position: relative;">
                                <div style="border: solid 1px #CCC; width: 130px; height: 100px; top: 3px; left: 3px; position: absolute; background-color: #FFF;">
                                    <a href="CreatePhoto.aspx?AlbumId=<%# Eval("AlbumID") %>"><%# WriteAlbumImage(Eval("ImageDefault")) %></a>
                                </div>
                            </div>
                            <div style="font-size: 11px; margin-top: 3px; line-height: 16px;">
                                <%# Eval("ViewCount") %> lượt xem - <%#WriteTotalImage(Eval("AlbumID").ToString()) %>
                                <br /><a href="CreatePhoto.aspx?AlbumId=<%# Eval("AlbumID") %>" title="Tác phẩm">Tác phẩm</a> | <a href="EditAlbum.aspx?Id=<%# Eval("AlbumID") %>" title="Sửa">Sửa</a> | <a href="DeleteAlbum.aspx?Id=<%# Eval("AlbumID") %>" onclick="return confirm('Bạn có chắc muốn xóa?')" title="Xóa">Xóa</a>
                                <br />
                                <%# WriteCreateDate(Eval("CreateDate").ToString())%>
                            </div>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
